package edu.hm.risikomanagement;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Information extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.information);
		final Button btn_InfoBack = (Button) findViewById(R.id.btn_InfoBack);
		final TextView textView = (TextView) findViewById(R.id.textViewInfo);
		textView.setText(getIntent().getStringExtra("info"));

		btn_InfoBack.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = getIntent();
				setResult(RESULT_OK, intent);
				finish();
			}
		});

	}
}